package com.example.xinlijiankangsys.mapper;

import com.example.xinlijiankangsys.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper

public interface IntiMapper {

    @Select("select * from xinlijiankang.user_tb")
    @Results({
            @Result(property = "userId", column = "user_id"),
            @Result(property = "password", column = "password"),
            @Result(property = "auth", column = "auth")
    })
    List<User> getAllUsers();

}
